import request from '@/utils/request'
 
export const add = function(params){
  return request({
    url: '/equipment/add',
    method: 'post',
    data: params,
  })
}
export const list = function(params){
  return request({
    url: '/equipment/list',
    method: 'get',
    params: params,
  })
}
export const firstTypeList = function(params){
  return request({
    url: '/product_type/first_type',
    method: 'get',
    params: params,
  })
}

export const search = function(params){
  return request({
    url: '/equipment/search',
    method: 'get',
    params: params,
  })
}

// 设备数量
export const allCount = function(params){
  return request({
    url: '/equipment/all_count',
    method: 'get',
    params: params,
  })
}


// 设备数量
export const del = function(params){
  return request({
    url: '/equipment/del',
    method: 'post',
    data: params,
  })
}
